package cn.hxzy.ownerSource.clients;

import cn.hxzy.common.Result;
import cn.hxzy.entity.siteEntity.Site;
import cn.hxzy.ownerSource.clients.fallback.SiteClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "driver-site",fallbackFactory = SiteClientFallbackFactory.class)
public interface SiteClient {

    @GetMapping("/site/{id}")
    Result selectById(@PathVariable String id);
    @GetMapping("/site/selectByName/{loadingName}")
    Result selectByName(@PathVariable String loadingName);
    @GetMapping("/site/selectByNameUn/{unLoadingName}")
    Result selectByNameUn( @PathVariable String unLoadingName);
}
